﻿<%@ Page Language="C#" MasterPageFile="~/UI/Main/Main.Master" AutoEventWireup="true" CodeBehind="redate_videos.aspx.cs" Inherits="OrganizedIN.UI.Videos.redate_videos" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="middle_tab">
  	    <div id="middle_tab_title" align="center">My Videos</div>
	    <div class="middle_tab_content">
            <br />
		    <h4>You can Add, Search, Add Rating, Add To Album, Re-Name, Re-Date (Add to a future Date), Delete, Archive, and Share with your Group by clicking on the below icons:</h4><br />
        </div>
        <div id="icon_link_wrapper" align="center">
            <div id="icon_primary_documents" align="center"><a href="M_add_new_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Add New','','../../images/add_02.jpg',1)"><img src="../../images/add_01.jpg" alt="Add New" name="Add New" width="75" height="75" border="0" id="Add New" /></a></div>		
			<div id="icon_secondary" align="center"><a href="M_search_my_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Search','','../../images/search_02.jpg',1)"><img src="../../images/search_01.jpg" alt="Search" name="Search" width="75" height="75" border="0" id="Search" /></a></div>
            <div id="icon_secondary" align="center"><a href="add_rating_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Add Rating','','../../images/add_rating_02.jpg',1)"><img src="../../images/add_rating_01.jpg" alt="Add Rating" name="Add Rating" width="75" height="75" border="0" id="Add Rating" /></a></div>
            <div id="icon_secondary" align="center"><a href="add_to_videoalbum.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Add to Album','','../../images/add_to_videoalbum_02.jpg',1)"><img src="../../images/add_to_videoalbum_01.jpg" alt="Add to Album" name="Add to Album" width="75" height="75" border="0" id="add_to_album" /></a></div>
            <div id="icon_secondary" align="center"><a href="rename_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Re-Name','','../../images/rename_02.jpg',1)"><img src="../../images/rename_01.jpg" alt="Re-Name" name="Add Re-Name" width="75" height="75" border="0" id="Re-Name" /></a></div>		
		    <div id="icon_secondary" align="center"><img src="../../images/redate_02.jpg" alt="Re-Date" name="Re-Date" width="75" height="75" border="0" id="Re-Date" /></div>
            <div id="icon_secondary" align="center"><a href="share_with_group_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Share with group','','../../images/share_02.jpg',1)"><img src="../../images/share_01.jpg" alt="Share with group" name="Share with group" width="75" height="75" border="0" id="Share with group" /></a></div>
            <div id="icon_secondary" align="center"><a href="delete_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Delete','','../../images/delete_02.jpg',1)"><img src="../../images/delete_01.jpg" alt="Delete" name="Delete" width="75" height="75" border="0" id="Delete" /></a></div>    
            <div id="icon_secondary" align="center"><a href="archive_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Archive','','../../images/archive_02.jpg',1)"><img src="../../images/archive_01.jpg" alt="Archive" name="Archive" width="75" height="75" border="0" id="Archive" /></a></div>   
        </div>
        <div id="gridwrapper" runat="server" class="documents_table">
            <asp:DataGrid ID="dgVideoDate" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="5" Width="90%" HorizontalAlign="Center" oneditcommand="dgRating_EditCommand">
                <HeaderStyle BackColor="#C2CEE7" Font-Bold="True" HorizontalAlign="Center" Font-Size="12px"/> 
                <Columns>
                    <asp:BoundColumn DataField="Video_Id" HeaderText="Id" HeaderStyle-Font-Bold="true" Visible="false">
                        <HeaderStyle Font-Bold="True"></HeaderStyle>
                    </asp:BoundColumn>
                    
                     <asp:BoundColumn DataField="Video_Name" HeaderText="Video Name" HeaderStyle-Width="50%" HeaderStyle-Font-Bold="true">
                        <ItemStyle Font-Size="12px"/>
                    </asp:BoundColumn>       

                    <asp:TemplateColumn HeaderText="Date of Video Uploading">
                        <ItemTemplate>
                            <asp:TextBox ID="simple_calendar" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "LastActivityDate", "{0:MM/dd/yyyy}") %>'></asp:TextBox>
                            <asp:CalendarExtender ID="calendar_extender" TargetControlID="simple_calendar" runat="server"></asp:CalendarExtender>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center"/>
                    </asp:TemplateColumn>
                    
                    <asp:TemplateColumn HeaderText="Update">
                        <ItemTemplate>
                            <asp:ImageButton ID="btnEdit" runat="server" AlternateText="Edit" ImageUrl="../../images/edit.gif" CommandName="Edit"/>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                   </asp:TemplateColumn>
               </Columns>
                <PagerStyle Mode="NumericPages" />
            </asp:DataGrid>
        </div>
    </div>
</asp:Content>